
list_one    = "She sells sea shells"
list_two    = "This is a simple text"
lista_three = "Another simply text"

#exercise one solutions
def reverseText(Text):

    def reverse(st):
        rev = ""
        for i in range(0 ,len(st)):
            rev += st[(len(st) -1) - i]
        return rev

    TextSplit = reverse(Text).split(' ')
    string    = ""

    for i in TextSplit:
        string = string + reverse(i) + " "

    return string

print reverseText(list_one)
print reverseText(list_two)
print reverseText(lista_three)
    


